package com.eric.demo.io.aio.server;

import com.eric.demo.io.aio.server.AsyncTimeServerHandle;

/**
 * @author ZhangGuangyin on 2018/8/11
 */
public class TimeServer {

    public static void main(String[] argvs){
        int port = 8080;
        if(argvs != null && argvs.length > 0){
            port = Integer.valueOf(argvs[0]);
        }
        AsyncTimeServerHandle timeServer = new AsyncTimeServerHandle(port);

        new Thread(timeServer, "NIO-AsyncTimeServerHandle").start();
    }
}
